package com.lzh.controller;

import com.lzh.pojo.repVo.BaseResp;
import com.lzh.service.PayHotelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author lkl
 * @Description
 * @Date 2022/4/1
 */
@CrossOrigin
@RestController
@RequestMapping("hotel")
public class HotelPayController {

    @Autowired
    PayHotelService payHotelService;

    @RequestMapping("/payHotel")
    public BaseResp payHotel(Double price,Integer homeId){

        return payHotelService.payHotel(price,homeId);

    }

}
